<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>B站PC端首页的吃豆人轮播图</title>
    <link rel="stylesheet" href="B站PC端首页的吃豆人轮播图.css">
    <script src="/vue/vue.min.js"></script>


</head>
<body>
    <div class="container" id="app" @mouseover="stopAutoPlay" @mouseout="startAutoPlay">
        <div class="img-box">
            <img :src="item.image" alt="" v-for="item in list">
        </div>
        <div class="bottom-box" :style="{'--b-color':list[0].bottom_color}">
            <div class="l-box">
                <div class="title">{{list[active_index].title}}</div>
                <ul class="dots">
                    <li :class="[index==active_index?'pacman':'dot',is_prev?'l':'']" v-for="(item,index) in list" @click="changeBanner(index)">
                        <!-- 吃豆人 -->
                        <div v-if="index==active_index"></div>
                        <div v-if="index==active_index"></div>
                    </li>
                </ul>
            </div>
            <div class="r-box">
                <i @click="changeBanner(-1,true)"> < </i>
                <i @click="changeBanner(-1,false)"> > </i>
            </div>
        </div>
    </div>
</body>
<script src="B站PC端首页的吃豆人轮播图.js"></script>
</html>
